package com.ruoyi.admin.domain.vo.request.flaw;

import com.ruoyi.admin.domain.entity.FlawModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;
import org.apache.poi.hpsf.Decimal;
import org.springframework.beans.BeanUtils;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;


/**
 * 瑕疵表添加参数实体
 *
 * @author jianhan
 * @date 2023-01-31 09:53:25
 */
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class FlawAddRequest {

    @ApiModelProperty(value = "货号id", required = true)
    private Long articleId;

    @ApiModelProperty(value = "品牌名称", required = true)
    private String brand;

    @ApiModelProperty(value = "货号", required = true)
    private String atricleNumber;

    @ApiModelProperty(value = "码数", required = true)
    private String size;

    @ApiModelProperty(value = "图片地址", required = true)
    private String picture;

    @ApiModelProperty(value = "处理状态10未处理20已处理30已修复", required = true)
    private String state;

    @ApiModelProperty(value = "处理价格", required = true)
    private BigDecimal price;

    @ApiModelProperty(value = "备注", required = true)
    private String remark;

    /**
     * 获取实体对象
     *
     * @return 对象
     * @author jianhan
     * @date 2023-01-31 09:53:25
     **/
    @ApiModelProperty(hidden = true)
    public FlawModel getFlawModel() {
        FlawModel flawModel = new FlawModel();
        BeanUtils.copyProperties(this, flawModel);
        return flawModel;
    }

}
